<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewRegTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewRegLabel_idReg}"/>
                    <h:outputText value="#{regController.selected.idReg}" title="#{bundle.ViewRegTitle_idReg}"/>
                    <h:outputText value="#{bundle.ViewRegLabel_dateReg}"/>
                    <h:outputText value="#{regController.selected.dateReg}" title="#{bundle.ViewRegTitle_dateReg}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewRegLabel_libReg}"/>
                    <h:outputText value="#{regController.selected.libReg}" title="#{bundle.ViewRegTitle_libReg}"/>
                    <h:outputText value="#{bundle.ViewRegLabel_capReg}"/>
                    <h:outputText value="#{regController.selected.capReg}" title="#{bundle.ViewRegTitle_capReg}"/>
                    <h:outputText value="#{bundle.ViewRegLabel_verReg}"/>
                    <h:outputText value="#{regController.selected.verReg}" title="#{bundle.ViewRegTitle_verReg}"/>
                    <h:outputText value="#{bundle.ViewRegLabel_caplReg}"/>
                    <h:outputText value="#{regController.selected.caplReg}" title="#{bundle.ViewRegTitle_caplReg}"/>
                    <h:outputText value="#{bundle.ViewRegLabel_verlReg}"/>
                    <h:outputText value="#{regController.selected.verlReg}" title="#{bundle.ViewRegTitle_verlReg}"/>
                    <h:outputText value="#{bundle.ViewRegLabel_liblReg}"/>
                    <h:outputText value="#{regController.selected.liblReg}" title="#{bundle.ViewRegTitle_liblReg}"/>
                    <h:outputText value="#{bundle.ViewRegLabel_nomUsr}"/>
                    <h:outputText value="#{regController.selected.nomUsr}" title="#{bundle.ViewRegTitle_nomUsr}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{regController.destroyAndView}" value="#{bundle.ViewRegDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewRegEditLink}"/>
                <br />
                <h:commandLink action="#{regController.prepareCreate}" value="#{bundle.ViewRegCreateLink}" />
                <br />
                <h:commandLink action="#{regController.prepareList}" value="#{bundle.ViewRegShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewRegIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
